import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-07
 * Time:19:56
 */
public class main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        for(int i=1;i<=num;i++)
        {
        for(int k=1;k<=i;k++)
        {
            System.out.print(k+"*"+i+"="+(i*k)+"  ");
        }
            System.out.println();
        }
    }
}
